using game_config;

namespace game_stuff
{
    public class EnemyActionDamageStatus
    {
        public float CounterDmgAdd { get; private set; }
        public float HitBackDmgAdd { get; private set; }
        public float BlockRangeAdd { get; private set; }
        public int ShockBuffStack { get; private set; }

        public EnemyActionDamageStatus()
        {
            CounterDmgAdd = 0;
            HitBackDmgAdd = 0;
            BlockRangeAdd = 0;
            ShockBuffStack = 0;
        }

        public void Refresh(float[] vector)
        {
            CounterDmgAdd = vector[0];
            HitBackDmgAdd = vector[1];
            BlockRangeAdd = vector[2];
            var effectValue = CommonConfig.Configs.play_buffs[CommonConfig.OtherConfig!.common_shock_buff].EffectValue;
            ShockBuffStack = (int)(vector[3] / effectValue);
        }
    }
}